package zhaoxue.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import zhaoxue.dao.ZhaoXueDao;
import zhaoxue.entity.BjEntity;
import zhaoxue.entity.Page;
import zhaoxue.entity.ZhaoXueEntity;
import zhaoxue.service.ZhaoXueService;

import java.util.List;
@Service("zhaoXueService")
public class ZhaoXueServiceImpl implements ZhaoXueService {
    @Autowired
    ZhaoXueDao zhaoXueDao;
    @Override
    public void save(ZhaoXueEntity zhaoXueEntity) {
        zhaoXueDao.save(zhaoXueEntity);
    }

    @Override
    public int queryCount(String name) {
        return zhaoXueDao.queryCount(name);
    }

    @Override
    public List<ZhaoXueEntity> queryPage(Page page, String name) {
        return zhaoXueDao.queryPage(page,name);
    }

    @Override
    public ZhaoXueEntity edit(ZhaoXueEntity zhaoXueEntity) {
        return zhaoXueDao.edit(zhaoXueEntity);
    }

    @Override
    public void del(ZhaoXueEntity zhaoXueEntity) {
        zhaoXueDao.del(zhaoXueEntity);
    }

    @Override
    public List<BjEntity> bj() {
        return zhaoXueDao.bj();
    }
}
